Fix variable names
authorrobin <robinp.1273@gmail.com>
Thu, 7 Aug 2014 15:34:57 +0000 (16:34 +0100)
committerrobin <robinp.1273@gmail.com>
Thu, 7 Aug 2014 15:34:57 +0000 (16:34 +0100)
Change I2f4d298a15046c4dc02afbf7582c90a1f17ea4cb added $title = $this->getTitle()
but $title was already defined for the delete reason message, causing the delete log except
to be shown always for the page "MediaWiki:Deletereason-dropdown".
Renaming the previous $title to fix this.

Change-Id: Ibecd181e80d83b0163e17d53b0b1b8c4a366ac1d

includes/page/Article.php

index 436f148..4a6e002 100644 (file)
@@ -1751,9 +1751,9 @@ class Article implements Page {
                        Xml::closeElement( 'form' );
 
                        if ( $user->isAllowed( 'editinterface' ) ) {
-                               $title = Title::makeTitle( NS_MEDIAWIKI, 'Deletereason-dropdown' );
+                               $dropdownTitle = Title::makeTitle( NS_MEDIAWIKI, 'Deletereason-dropdown' );
                                $link = Linker::link(
-                                       $title,
+                                       $dropdownTitle,
                                        wfMessage( 'delete-edit-reasonlist' )->escaped(),
                                        array(),
                                        array( 'action' => 'edit' )